package com.example.idlefish.GoodsInfo.parseGson

import com.google.gson.Gson
import com.example.idlefish.GoodsInfo.pojo.BuyInfo

import com.google.gson.reflect.TypeToken

object paraseBuyInfo {
    fun  paraseBuyInfo(response:String):BuyInfo{
        val gson = Gson()
        val ttype = object : TypeToken<BuyInfo>(){}.type
        return gson.fromJson(response, ttype)
    }
}